<?php

//查权限管理
require_once("./DButil.php");
$loginTeacher=$_SESSION["loginTeacher"];//查登录的老师
$roleid=$loginTeacher["roleId"];
// echo $roleid;
$sql="select pow.powerName name,pow.powerPath path from t_power pow,t_role_power trp where pow.powerId=trp.powerId and roleId='{$roleid}'";
$arr=query($sql);
header("Content-Type:application/json;charset=utf-8");
echo json_encode($arr);
?>